import { Component, OnInit } from '@angular/core';
import {SmarketComponentsLibService} from '../smarket-components-lib.service';

@Component({
  selector: 'smarket-footer',
  templateUrl: './footer.component.html',
  styleUrls: ['./footer.component.scss']
})
export class FooterComponent implements OnInit {

  copyright = '版权信息';

  constructor(private service$: SmarketComponentsLibService) { }

  ngOnInit() {
    this.service$.getFooterData()
      .subscribe((data: any) => {
        this.copyright = data.copyright;
      });
  }

}
